package is.ejs.bahamut;

import java.util.Iterator;
import java.util.Map;

public class DiceRollProfile {
	private int[] typeArray;
	private int[] numberArray;
	
	//Fjöldi lína í þessu profile
	int nrOfLines;
	
	public DiceRollProfile(Map<Integer, Integer> typeMap, Map<Integer, Integer> numberMap,  int nrOfLines2) {
		nrOfLines = nrOfLines2;
		typeArray = new int[nrOfLines2];
		numberArray = new int[nrOfLines2];
		Iterator<Integer> typeIter = typeMap.values().iterator();
		Iterator<Integer> numberIter = numberMap.values().iterator();
		int i =0;
		while(typeIter.hasNext()) {
			int next = typeIter.next();
			typeArray[i] = next;
			i++;
		}
		i = 0;
		while(numberIter.hasNext()) {
			int next = numberIter.next();
			numberArray[i] = next;
			i++;
		}
			
		
		
	}
	
	public int getNrOfLines() {
		return nrOfLines;
	}

	public int[] getTypeArray() {
		return typeArray;
	}
	
	public int[] getNumberArray() {
		return numberArray;
	}
}
